import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n


 // 引入echarts
 import echarts from 'echarts'

 Vue.prototype.$echarts = echarts

// 将自动注册所有组件为全局组件
import dataV from '@jiaminghi/data-view'

Vue.use(dataV)

import '@/styles/index.scss' // global css
import axios from 'axios'
import interceptors from './api/interceptors';
interceptors();
import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'
import {HttpService} from "./utils/HttpService"
Vue.use(Avue,{axios})
Vue.use(ElementUI, { locale })

window.axios = axios
Vue.config.productionTip = false
Vue.config.$axios = axios
Vue.prototype.$httpService = new HttpService();
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
